//
//  Define.swift
//  newshaohuo
//
//  Created by shaohuo on 2018/1/30.
//  Copyright © 2018年 shaohuo. All rights reserved.
//

import Foundation

//获取device的屏幕宽高
// 全屏宽度
let kScreenWitdh = UIScreen.main.bounds.width
// 全屏高度，不含状态栏高度
let kScreenHeight = UIScreen.main.bounds.height

let kAutoSizeScaleX = kScreenWitdh/375

let kAutoSizeScaleY = kScreenHeight/667

//全局背景和线条颜色
let kGlobalBgColor = "#B7B7B7"

//使用枚举作为关键字， 避免重复键值
//enum Keys: String {
//    case Uid = "uid"
//    case Token = "access_token"
//    case AccessKeySecret = "AccessKeySecret"
//    case ObjectKey = "ObjectKey"
//    case BucketName = "bucketName"
//    case AccessKeyId = "AccessKeyId"
//    case VoiceObjectKey = "VoiceObjectKey"
//    case ApplyObjectKey = "ApplyObjectKey"
//}
//"https://fileishaohuo.oss-cn-hangzhou.aliyuncs.com"
//"https://agencyfile.ishaohuo.cn"
let endpoint = "https://agencyfile.ishaohuo.cn"

let file_path = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first?.appending("/record.wav")

let mp3FilePath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first?.appending("/record.mp3")

#if DEBUG
let isProduction = true
let URL_ROOT = "https://dev-center.ishaohuo.cn"

#else
let isProduction = false
let URL_ROOT = "https://center.ishaohuo.cn"

#endif


/// 捎货人考试
let ShipperExamURLString = "\(URL_ROOT)/api/exam/index"

